<template>
	<view class="content">
		<view>
			<u-swiper v-if='itemModel.coverPhotoList && itemModel.coverPhotoList.length>1' :list="itemModel.coverPhotoList" keyName='coverUrl' height="1000rpx" interval='2000' imgMode='aspectFill' indicator circular></u-swiper>
			<u-swiper v-else mode="none" :list="itemModel.coverPhotoList" keyName='coverUrl'  height="1000rpx" imgMode='aspectFill'></u-swiper>
		</view>
		<view style="padding: 20rpx">
			<view style="font-size: 34rpx;font-weight: bold;">{{itemModel.name}}</view>
			<view style="display: flex;flex-direction: row;align-items: center;justify-content: space-between;margin-top: 20rpx;">
				<view style="color: #fa3534;font-size: 42rpx">¥{{itemModel.suggestSellingPrice}}</view>
				<view>
					<button icon='share' type="default" open-type='share' plain style="border: 0px solid #FFFFFF;">
						<image style="width: 50rpx;height: 50rpx;" src="@/pageA/static/merchant/share.png" mode="aspectFit"></image>
					</button>
				</view>
				<!-- <image style="width: 50rpx;height: 50rpx;" src="@/pageA/static/merchant/share.png" mode="aspectFit"></image> -->
			</view>
			
			<view style="font-size: 28rpx;color: #999;margin-top: 10rpx;">销量：{{itemModel.sales}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		components: {},
		props:{
			itemModel: {
				type: Object,
				default: ()=>{}
			},
		},
		data() {
			return {
			}
		},
		methods:{
			
		}
	}
</script>

<style scoped lang="scss">
	.content{
		background: #FFF
	}
	.custom-style{
		width: 60rpx;
		border-color: #ffffff;
	}
</style>
